package org.chatboleh;

import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;
import javax.swing.JFormattedTextField;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

import org.dyno.visual.swing.layouts.Constraints;
import org.dyno.visual.swing.layouts.GroupLayout;
import org.dyno.visual.swing.layouts.Leading;

//VS4E -- DO NOT REMOVE THIS LINE!
public class TextElementProperties extends JPanel {

	private static final long serialVersionUID = 1L;
	private JComboBox cmbFontName;
	private JComboBox cmbFontSize;
	private JLabel jLabel0;
	private JLabel jLabel1;
	private JLabel jLabel3;
	private JLabel jLabel2;
	private JComboBox cmbFontStyle;
	private JComboBox cmbFontColor;
	private JTextField txtText;
	private JFormattedTextField txtX;
	private JFormattedTextField txtY;
	private JFormattedTextField txtWidth;
	private JLabel jLabel4;
	private JLabel jLabel5;
	private JLabel jLabel7;
	private JLabel jLabel6;

	public TextElementProperties() {
		initComponents();
	}

	private void initComponents() {
		setLayout(new GroupLayout());
		add(getCmbFontName(), new Constraints(new Leading(101, 10, 10), new Leading(9, 10, 10)));
		add(getCmbFontSize(), new Constraints(new Leading(101, 10, 10), new Leading(35, 10, 10)));
		add(getJLabel0(), new Constraints(new Leading(17, 10, 10), new Leading(12, 12, 12)));
		add(getJLabel1(), new Constraints(new Leading(17, 10, 10), new Leading(39, 12, 12)));
		add(getJLabel3(), new Constraints(new Leading(15, 10, 10), new Leading(94, 10, 10)));
		add(getCmbFontStyle(), new Constraints(new Leading(101, 12, 12), new Leading(61, 12, 12)));
		add(getCmbFontColor(), new Constraints(new Leading(101, 12, 12), new Leading(87, 12, 12)));
		add(getJLabel2(), new Constraints(new Leading(15, 12, 12), new Leading(67, 12, 12)));
		add(getJLabel6(), new Constraints(new Leading(249, 14, 12, 12), new Leading(57, 12, 12)));
		add(getTxtText(), new Constraints(new Leading(299, 118, 10, 10), new Leading(12, 12, 12)));
		add(getTxtX(), new Constraints(new Leading(299, 33, 12, 12), new Leading(33, 12, 12)));
		add(getTxtY(), new Constraints(new Leading(299, 32, 12, 12), new Leading(55, 12, 12)));
		add(getTxtWidth(), new Constraints(new Leading(299, 32, 12, 12), new Leading(77, 12, 12)));
		add(getJLabel7(), new Constraints(new Leading(248, 12, 12), new Leading(79, 12, 12)));
		add(getJLabel5(), new Constraints(new Leading(249, 14, 12, 12), new Leading(35, 12, 12)));
		add(getJLabel4(), new Constraints(new Leading(249, 12, 12), new Leading(14, 12, 12)));
		setSize(451, 124);
	}

	private JComboBox getCmbFontSize() {
		if (cmbFontSize == null) {
			cmbFontSize = new JComboBox();
			cmbFontSize.setModel(new DefaultComboBoxModel(new Object[] { "8", "10", "12", "14", "16", "18" }));
			cmbFontSize.setDoubleBuffered(false);
			cmbFontSize.setBorder(null);
		}
		return cmbFontSize;
	}

	private JComboBox getCmbFontName() {
		if (cmbFontName == null) {
			cmbFontName = new JComboBox();
			cmbFontName.setModel(new DefaultComboBoxModel(new Object[] { "Arial", "Courier New" }));
			cmbFontName.setDoubleBuffered(false);
			cmbFontName.setBorder(null);
		}
		return cmbFontName;
	}

	private JLabel getJLabel6() {
		if (jLabel6 == null) {
			jLabel6 = new JLabel();
			jLabel6.setText("Y");
		}
		return jLabel6;
	}

	private JLabel getJLabel7() {
		if (jLabel7 == null) {
			jLabel7 = new JLabel();
			jLabel7.setText("Width");
		}
		return jLabel7;
	}

	private JLabel getJLabel5() {
		if (jLabel5 == null) {
			jLabel5 = new JLabel();
			jLabel5.setText("X");
		}
		return jLabel5;
	}

	private JLabel getJLabel4() {
		if (jLabel4 == null) {
			jLabel4 = new JLabel();
			jLabel4.setText("Text");
		}
		return jLabel4;
	}

	private JFormattedTextField getTxtWidth() {
		if (txtWidth == null) {
			txtWidth = new JFormattedTextField();
			txtWidth.setText("10");
		}
		return txtWidth;
	}

	private JFormattedTextField getTxtY() {
		if (txtY == null) {
			txtY = new JFormattedTextField();
			txtY.setText("0");
		}
		return txtY;
	}

	private JFormattedTextField getTxtX() {
		if (txtX == null) {
			txtX = new JFormattedTextField();
			txtX.setText("0");
		}
		return txtX;
	}

	private JTextField getTxtText() {
		if (txtText == null) {
			txtText = new JTextField();
		}
		return txtText;
	}

	private JComboBox getCmbFontColor() {
		if (cmbFontColor == null) {
			cmbFontColor = new JComboBox();
			cmbFontColor.setModel(new DefaultComboBoxModel(new Object[] { "Black", "Blue" }));
			cmbFontColor.setDoubleBuffered(false);
			cmbFontColor.setBorder(null);
		}
		return cmbFontColor;
	}

	private JComboBox getCmbFontStyle() {
		if (cmbFontStyle == null) {
			cmbFontStyle = new JComboBox();
			cmbFontStyle.setModel(new DefaultComboBoxModel(new Object[] { "Normal", "Bold" }));
			cmbFontStyle.setDoubleBuffered(false);
			cmbFontStyle.setBorder(null);
		}
		return cmbFontStyle;
	}

	private JLabel getJLabel2() {
		if (jLabel2 == null) {
			jLabel2 = new JLabel();
			jLabel2.setText("Style");
		}
		return jLabel2;
	}

	private JLabel getJLabel3() {
		if (jLabel3 == null) {
			jLabel3 = new JLabel();
			jLabel3.setText("Color");
		}
		return jLabel3;
	}

	private JLabel getJLabel1() {
		if (jLabel1 == null) {
			jLabel1 = new JLabel();
			jLabel1.setText("Size");
		}
		return jLabel1;
	}

	private JLabel getJLabel0() {
		if (jLabel0 == null) {
			jLabel0 = new JLabel();
			jLabel0.setText("Font");
		}
		return jLabel0;
	}

}
